import Vue from 'vue'
import Router from 'vue-router'
import Main from '../pages/Main'
import Me from '../pages/Me'
import MeMobile from '../pages_mobile/MeMobile'
import LoginMobile from '../pages_mobile/LoginMobile'
import RegisterMobile from '../pages_mobile/RegisterMobile'
import Write from "../pages/Write"
import ArticleView from "../pages/ArticleView"
import MyArticles from "../pages/MyArticles"
import Emotion from "../pages/Emotion.vue"
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Main',
      component: Main
    },
    {
      path: '/me',
      name: 'Me',
      component: Me
    },
    {
      path: '/write',
      name: 'Write',
      component: Write
    },
    {
      path: '/me_mobile',
      name: 'MeMobile',
      component:  MeMobile
    },
    {
      path: '/login_mobile',
      name: 'LoginMobile',
      component:  LoginMobile
    },
    {
      path: '/register_mobile',
      name: 'Register',
      component:  RegisterMobile
    },
    {
      path: '/view/:id',
      name: 'View',
      component: ArticleView
    },
    {
      path: '/mine',
      name: 'Mine',
      component: MyArticles
    },
    {
      path: '/emotion',
      name: 'Emotion',
      component: Emotion
    }
  ]
})
